package com.hxl.tech.gateway.auth.model;

import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;

/**
 * 资源配置 Model 
 * @author soliddq
 * @date 2023-10-10
 */
@Entity
@Data
public class Resource implements Serializable {

    @EmbeddedId
    private Id id;

    private String resourceValue;

    @Embeddable
    @Data
    public static class Id implements Serializable {
        private String merchantCode;
        private String resourceType;

        public Id() {
        }

        public Id(String merchantCode,String resourceType) {
            this.merchantCode = merchantCode;
            this.resourceType = resourceType;
        }
    }

}
